package com.vstudy.zx.service;

import com.vstudy.zx.entity.Grade;
import com.vstudy.zx.entity.School;
import com.vstudy.zx.entity.Subject;
import com.vstudy.zx.entity.Teacher;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import java.io.IOException;
import java.util.List;

public interface TeacherService {
    int updatePwd(Teacher teacher);

    Teacher login(String username);

    Boolean updateImg(Teacher teacher, MultipartFile img, HttpServletRequest request) throws IOException;

    List<Grade> getGrades();

    List<Subject> getSubjects();

    List<School> getSchools();

    Boolean exists(String loginName, Long excludeId);

    int update(Teacher teacher);

    Boolean register(String realName, String username, String password);
}
